/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 折扣规则维护(OEM)

// 数据查询GET fiDiscountRule/searchFiDiscountRuleDTOList
export const queryList = (params) => axios.get(`${SERVER.WHOLESALES}/fiDiscountRule/searchFiDiscountRuleDTOList`, {
  params
})

// 新增数据 fiDiscountRule/addFiDiscountRuleDTO
export const addFiDiscountRule = (params) => axios.post(`${SERVER.WHOLESALES}/fiDiscountRule/addFiDiscountRuleDTO`, params)

// 修改数据 fiDiscountRule/updateFiDiscountRuleDTO
export const updateFiDiscountRule = (params) => axios.post(`${SERVER.WHOLESALES}/fiDiscountRule/updateFiDiscountRuleDTO`, params)

// 查询详情get fiDiscountRule/getFiDiscountRuleDTOById
export const getFiDiscountRule = (param) => axios.get(`${SERVER.WHOLESALES}/fiDiscountRule/getFiDiscountRuleDTOById`, {
  param
})
